module.exports = {
  publicPath: "./",
  outputDir: "dist", //构建时输出的目录
  assetsDir: "staic", //放置静态资源目录
  indexPath: "index.html", //html 输出路径
  filenameHashing: true, //文件名哈希值
  pages: {
    index: {
      entry: "src/main.js", //page 入口文件
      template: "index.html", //模板文件
      filename: "index.html", //在dist/index.html 的输出文件
      title: "考试",
    },
  },
  configureWebpack: {},

  devServer: {
    // open: process.platform === 'darwin',
    host: "0.0.0.0",
    port: 8051,
    open: true, //配置自动启动浏览器
    proxy: {
      "/api": {
        target: "http://117.160.141.22:8022", //对应服务器的接口
        changeOrigin: true,
        pathRewrite: {
          "^/api": "/",
        },
      },
    },
  },
};
